﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package validation {
    import flash.utils.*;
    import validation.util.*;
    import Modules.franchise.validation.*;

    public class ValidationManager {

        protected var m_utilClasses:Dictionary;

        public function ValidationManager(){
            this.loadUtilClasses();
        }
        public function getValidationFunction(_arg1:String, _arg2:String):Function{
            if (this.m_utilClasses[_arg1] != null){
                return ((this.m_utilClasses[_arg1] as IValidationUtilClass).getValidationCallback(_arg2));
            };
            return (null);
        }
        protected function loadUtilClasses():void{
            this.m_utilClasses = new Dictionary();
            this.m_utilClasses["MapResourceValidationUtil"] = new MapResourceValidationUtil();
            this.m_utilClasses["ItemValidationUtil"] = new ItemValidationUtil();
            this.m_utilClasses["FranchiseValidationUtil"] = new FranchiseValidationUtil();
            this.m_utilClasses["RollCallValidationUtil"] = new RollCallValidationUtil();
            this.m_utilClasses["GlobalValidationUtil"] = new GlobalValidationUtil();
            this.m_utilClasses["ExperimentValidationUtil"] = new ExperimentValidationUtil();
        }

    }
}//package validation 
